package com.liannong.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName(value = "products", keepGlobalPrefix = true)
public class Product {
    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;
    
    @TableField("traceCode")
    private String traceCode;
    
    private String name;
    
    private BigDecimal price;
    
    private String origin;
    
    @TableField("min_temp")
    private Integer minTemp;
    
    @TableField("max_temp")
    private Integer maxTemp;
    
    private String description;
    
    @TableField("harvest_time")
    private LocalDateTime harvestTime;
    
    @TableField("create_user_id")
    private Integer createUserId;
    
    @TableField("audit_status")
    private Integer auditStatus; // 0-待审核 1-审核通过 2-审核拒绝
    
    @TableField("audit_time")
    private LocalDateTime auditTime;
    
    @TableField("audit_user_id")
    private Integer auditUserId;
    
    @TableField("audit_comment")
    private String auditComment;
}